<div class="modal fade modal_<?php echo $type; ?>" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel"
     aria-hidden="true">
    <div class="modal-dialog modal-lg">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span
                        class="sr-only">关闭</span></button>
                <h4 class="modal-title" id="myModalLabel">设置为封面图片</h4>
            </div>
            <div class="modal-body">
                <?php $width = IMAGE_WIDTH_THUMB;
                $height = 0; ?>
                <img class="设置为封面图片"
                     style="width:100%; height:auto; display:block; max-width:<?php echo $width; ?>px;"
                     src="<?php echo $this->image_workshop->crop_image(ORIGINALS_FOLDER_WF . '/' . $wallpaper->wallpaper_image_path, $width, $height, $wallpaper->wallpaper_crop_position, 'thumbnail'); ?>"
                     alt="<?php echo $wallpaper->wallpaper_name; ?>">
            </div>
        </div>
    </div>
</div>